<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>鼠标移动事件</title>
		<style>
			.box{
				width: 300px;
				height: 300px;
				background-color: green;
			}
		</style>
	</head>
	<body>
		<div class="box" onmouseover="over()"></div>
		<script type="text/javascript">
			function over(){
				alert("鼠标移进来了");
			}
		</script>
	</body>
</html>
